<?php

namespace app\api\model;

use think\Model;

class UserTokenModel extends BaseModel
{
    protected $pk = 'id';
    protected $table = 'hs_user_token';
    protected static $tableName = 'user_token';

    //获取token表记录
    public static function getToken($token)
    {
        return self::where('token', $token)->find();
    }
}